/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tugas1;

import java.util.Scanner;

/**
 *
 * @author reziyus
 */
public class Trapesium extends Shape {
	
	public static void main(String[] args) {
        System.out.println("Hitung Luas dan Keliling Bangun Trapesium\n");
        Scanner sc = new Scanner(System.in);
        System.out.print("Masukkan Rusuk Atas: ");
        float rusuk1 = sc.nextFloat();
        System.out.print("Masukkan Rusuk Bawah: ");
        float rusuk2 = sc.nextFloat();
        System.out.print("Masukkan Tinggi: ");
        float height = sc.nextFloat();
        
        System.out.println("Luas Trapesium adalah " + luasTrapesium(rusuk1, rusuk2, height));
		
        System.out.println("Keliling Trapesium adalah " + kelilingTrapesium(rusuk1, rusuk2, height));
    }
}